<?php

namespace app;

// 应用请求对象类
use think\helper\Macroable;

class Request extends \think\Request
{

    use Macroable;
    public function buildParams()
    {
        $res = array(
            "size"  => (int)$this->param('size', 10),
            "page"  => (int)$this->param('page', 1),
            "where" => $this->param('search', []),
            "order" => $this->param('order', ""),
        );
        return $res;
    }
}
